﻿<%--
   Copyright 2012 University of Southampton

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
--%>

<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CollectionDetails.aspx.cs" Inherits="uk.ac.soton.ses.layouts.CollectionDetails" DynamicMasterPageFile="~masterurl/default.master" %>

<%@ Register TagPrefix="hdc" TagName="ExperimentQuickSearch" Src="/_controltemplates/uk.ac.soton.ses/HDCUserControls/ExperimentQuickSearch.ascx" %>

<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">

</asp:Content>

<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">

<%--    <h3 class="HDCH3">Collection Details</h3>

    <h4>Collection items</h4>
    <SharePoint:SPGridView ID="view_CollectionExperiments" runat="server" DataKeyNames="ID" AutoGenerateColumns="false">
        <Columns>
            <asp:HyperLinkField HeaderText="Name" DataTextField="Name" DataNavigateUrlFields="ID" DataNavigateUrlFormatString="/_layouts/HDC/ExperimentDetails.aspx?ID={0}" />
            <asp:BoundField HeaderText="Description" DataField="Description" />
        </Columns>
    </SharePoint:SPGridView>
--%>

<asp:Literal ID="literal_CollectionTitle" runat="server" />

<asp:PlaceHolder ID="PlaceHolder_Messages" runat="server" />

<SharePoint:SPGridView ID="View_Experiments" runat="server" DataKeyNames="ID" AutoGenerateColumns="false" ViewStateMode="Enabled" EmptyDataText="No links">
    <Columns>
        <asp:TemplateField>
            <ItemTemplate>
                <asp:LinkButton ID="btn_ExperimentLinkDelete" runat="server" Text="Unlink" CommandName="Delete" />
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Name">
            <ItemTemplate>
                <asp:HyperLink ID="link_ExperimentDetails" runat="server" Text='<%# Eval("Name") %>' Target="_blank" />
            </ItemTemplate>
        </asp:TemplateField>
        <asp:BoundField HeaderText="Description" DataField="Description" />
    </Columns>
</SharePoint:SPGridView>

<ul class="hdctoolbullets">
    <li class="hdctool">
        <hdc:ExperimentQuickSearch ID="Control_ExperimentQuickSearch_Link" runat="server" SearchLabelText="Link to existing experiment (enter ID or search):" OKButtonText="Link"/>
    </li>
</ul>

</asp:Content>

<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
<asp:Literal id="literal_PageTitle" Text="Application Page" runat="server" />
</asp:Content>

<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server" >
My Application Page
</asp:Content>
